package cn.signalpha.modules.shop.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 视图实体类
 *
 * @author signalpha
 */
@Data
@ApiModel(value = "SellerVO对象", description = "商户")
public class SellerListVO implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "商户id")
	private Long id;
	@ApiModelProperty(value = "名称")
	private String name;
	@ApiModelProperty(value = "logo")
	private String logo;
	@ApiModelProperty(value = "评分")
	private Integer score;
	@ApiModelProperty(value = "背景图")
	private String backImg;
	@ApiModelProperty(value = "是否开启自提")
	private Integer isOpenPick;
	@ApiModelProperty(value = "扩展信息")
	private SellerExtVO extVO;
	@ApiModelProperty(value = "商品列表")
	private List<GoodsDTO> goodsList;

	@Data
	public static class GoodsDTO implements Serializable {
		private static final long serialVersionUID = 1L;
		@ApiModelProperty(value = "id")
		private Long id;
		@ApiModelProperty(value = "名称")
		private String name;
		@ApiModelProperty(value = "封面")
		private String img;
		@ApiModelProperty(value = "商品价")
		private Double goodsPrice;
	}
}
